<?php

namespace Lib;

use Sdk\lib\Core;

class Ws {

	public static function __callStatic($name, $arguments) {
		return Core::RequestWit(__CLASS__, $name, $arguments, Core::Type_StaticMethod);
	}

	public static function GetWsUrl($name, $params = null) {
		$arguments = func_get_args();
		if (count($arguments) == 1) {
			$arguments[] = '';
		}
		$e = explode('/', PLUGIN_PATH);
		$arguments[] = implode('.', array_slice($e, -3));
		return Core::RequestWit(__CLASS__, __FUNCTION__, $arguments, Core::Type_StaticMethod);
	}

}